﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Conversion_Script
{
    class Settings
    {
        static Matrix table;

        public static string Get(string RowLabel)
        {
            return table.GetValue(RowLabel, KeyWords.Value);
        }

        private static string Get(string RowLabel, string Header)
        {
            return table.GetValue(RowLabel, Header);
        }
        public static int GetSimulationLength()
        {
            int s = int.Parse(Settings.Get(KeyWords.Simulationlength));
            return s;
        }
        public static void Initialize(string SettingsFileName)
        {
            if (System.IO.File.Exists(SettingsFileName) == false)
            {
                throw new System.Exception("Cannot find filename " + SettingsFileName);
            }
            
            // Read settings from that file
            table = new Matrix(SettingsFileName);

            
        }
    }
}
